package com.cyzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyzy.pojo.CourseStu;
import com.cyzy.pojo.LikeRecord;
import com.cyzy.vo.CampusWorks;
import com.cyzy.vo.ChildAlbum;
import com.cyzy.vo.UserAlbum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArtGalleryMapper extends BaseMapper<LikeRecord> {
    //老师查询校区作品
    List<CampusWorks> getArtworkInfoListByTeacher(@Param("campusId") Long campusId,@Param("teacherId") Long teacherId);
    //家长查询校区作品
    List<CampusWorks> getArtworkInfoListByParent(@Param("campusId") Long campusId,@Param("parentId") Long parentId);
    //查询家长孩子的所有艺术家相册
    List<ChildAlbum> queryChildAlbumByParent(@Param("parentId") Long parentId);

    //查询老师的学生的所有艺术家相册
    List<ChildAlbum> queryChildAlbumByTeacher(@Param("teacherId") Long teacherId);
    //查询当前学生的艺术家相册和点赞数
    List<UserAlbum> selectUserAlbumList(@Param("stuId") Long stuId);
}
